<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<style>
#a,.b{
   color: pink
}
</style>
<body>
        <h2 id="a">我爱写代码</h2>
        <h2 class="b">我爱写代码</h2>
        <h2>我爱写代码</h2>
</body>
</html>